 package com.ftwj.utils.result;



public enum MessageEnum {

	HANDLE_SUCCESS(200, "操作成功"), 
	HANDLE_FAILED(100, "操作失败"),
	ONLINE(400,"设备离线"),
	SERVER_EXCEPTION(500, "系统异常"),
	USER_IS_NOT_EXIT(501, "住户不存在，请前往物业服务管理系统进行登记或重新输入号码后重试！"),
	USER_RANGE_EXIST(502,"当前用户人脸信息未授权，请先前往住户管理进行人脸录入授权"),
	DATA_PARAM_NULL_ERROR(700, "请求参数为空"),
	BAD_REQUEST(503,"预约冲突"),

	DUPLICATE_KEY(504,"重复预约"),

	INTERNAL_SERVER_ERROR(505,"服务器错误"),
	SUCCESS(200,"操作成功"),
	FAIIL(400,"操作失败"),
	DATA_DELETE_ERROR(203,"数据删除失败"),
	DATA_INSERT_ERROR(204,"数据添加失败"),
	DATA_UPDATE_ERROR(205,"数据修改失败"),
	DATA_ACCESS_ERROR(206,"拒绝数据访问"),

	DATA_QUERY_ERROR(207,"数据查询失败"),
	DATA_QUERY_NULL_ERROR(208,"查询结果为空"),

	VERIFICATION_CODE_ERROR(209,"验证码错误"),
	USER_NOT_APPROVED(210,"用户尚未通过审核，请联系管理员"),
	USER_REJECTED(211,"用户账号状态异常，请联系管理员"),

	PHONE_OR_PASSWORD_ERROR(212,"用户名或密码错误"),

	DATA_UNKOWN_EXCEPTION(101,"操作失败：%s"),//异常信息自定义信息
	DATA_VALIDATEFILED_EXCEPTION(102,"数据校验失败：%s");
	private final Integer code;
	private final String message;
	
	public Integer getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	
	private MessageEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
	
}
